<a href='https://github.com/angular/angular.js/edit/v1.5.x/src/ng/templateRequest.js?message=docs($templateRequestProvider)%3A%20describe%20your%20change...#L5' class='improve-docs btn btn-primary'><i class="glyphicon glyphicon-edit">&nbsp;</i>Improve this Doc</a>



<a href='https://github.com/angular/angular.js/tree/v1.5.8/src/ng/templateRequest.js#L5' class='view-source pull-right btn btn-primary'>
  <i class="glyphicon glyphicon-zoom-in">&nbsp;</i>View Source
</a>


<header class="api-profile-header">
  <h1 class="api-profile-header-heading">$templateRequestProvider</h1>
  <ol class="api-profile-header-structure naked-list step-list">
    
  <li>
    <a href="api/ng/service/$templateRequest">- $templateRequest</a>
  </li>

    <li>
      - provider in module <a href="api/ng">ng</a>
    </li>
  </ol>
</header>



<div class="api-profile-description">
  <p>Used to configure the options passed to the <a href="api/ng/service/$http"><code>$http</code></a> service when making a template request.</p>
<p>For example, it can be used for specifying the &quot;Accept&quot; header that is sent to the server, when
requesting a template.</p>

</div>






<div>
  

    

  

  
<h2>Methods</h2>
<ul class="methods">
  <li id="httpOptions">
    <h3><p><code>httpOptions([value]);</code></p>

</h3>
    <div><p>The options to be passed to the <a href="api/ng/service/$http"><code>$http</code></a> service when making the request.
You can use this to override options such as the &quot;Accept&quot; header for template requests.</p>
<p>The <a href="api/ng/service/$templateRequest"><code>$templateRequest</code></a> will set the <code>cache</code> and the <code>transformResponse</code> properties of the
options if not overridden here.</p>
</div>

    
    <h4>Parameters</h4>
    
<table class="variables-matrix input-arguments">
  <thead>
    <tr>
      <th>Param</th>
      <th>Type</th>
      <th>Details</th>
    </tr>
  </thead>
  <tbody>
    
    <tr>
      <td>
        value
        
        <div><em>(optional)</em></div>
      </td>
      <td>
        <a href="" class="label type-hint type-hint-string">string</a>
      </td>
      <td>
        <p>new value for the <a href="api/ng/service/$http"><code>$http</code></a> options.</p>

        
      </td>
    </tr>
    
  </tbody>
</table>

    

    
    
    
    <h4>Returns</h4>
    <table class="variables-matrix return-arguments">
  <tr>
    <td><a href="" class="label type-hint type-hint-string">string</a><a href="" class="label type-hint type-hint-self">self</a></td>
    <td><p>Returns the <a href="api/ng/service/$http"><code>$http</code></a> options when used as getter and self if used as setter.</p>
</td>
  </tr>
</table>
    

  </li>
  </ul>
  
  



  
</div>


